using Asd.Models;
using Microsoft.EntityFrameworkCore;

namespace Asd.Db
{
    public class DemoDb:DbContext{
        private readonly string SqlString = "server=.;database=Asd;uid=sa;pwd=123456;";
        public DbSet<Student> Students { get; set; }
        public DbSet<School> Schools { get; set; }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder){
            optionsBuilder.UseSqlServer(SqlString);
        }

    }
}